<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <div id="app">
        <h1>文本插值</h1>
        <p v-text="demo"></p>
        <!-- vue里的值会覆盖掉原来的 -->
        <p v-text="demo">被覆盖</p>
        <!-- 插值表达式 -->
        <p>被覆盖：{{demo}}</p>
        <hr />
        <h1>HTML插值</h1>
        <div v-html="info"></div>
    </div>

    <script src="./lib/vue.js"></script>
    <script>
        const vm = new Vue({
            el: '#app',
            data: {
                demo: '渲染',
                info: '<h1 style="color: red;">html插值</h1>'
            }
        })
    </script>

</body>

</html>